package com.ctshk.rpc.season.req;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDate;

/**
 * @ClassName SeasonProductStrategyQueryByDateReq
 * @Description: TODO
 * @Author 杨林
 * @Date 2021/3/17
 **/

@Data
@ApiModel(value="SeasonProductStrategyQueryByDateReq对象", description="固定套票-产品中心-根据查询日期获取 加幅信息")
public class SeasonProductStrategyQueryByDateReq implements Serializable {

    @ApiModelProperty(value = "产品id")
    @NotNull(message = "产品id 不能为空")
    private Long productId;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "有效期开始时间")
    @NotNull(message = "有效期开始时间不能为空")
    private LocalDate queryStartDate;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "有效期结束时间")
    @NotNull(message = "有效期结束时间不能为空")
    private LocalDate queryEndDate;


}
